package com.itdianzi.service.stat;

import com.alibaba.dubbo.config.annotation.Service;
import com.itdianzi.dao.stat.StatDao;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;


@Service
public class StatServiceImpl implements StatService {

    @Autowired
    private StatDao statDao;
    @Override
    public void sayHello(String name)
    {
        System.out.println("你好" + name);
    }

    @Override
    public List<Map> findFactory(String companyId)
    {
        return statDao.findFactory(companyId);
    }

    @Override
    public List<Map> findSell(String companyId)
    {
        return statDao.findSell(companyId);
    }

    @Override
    public List<Map> findOnline(String companyId)
    {
        return statDao.findOnline(companyId);
    }

    @Override
    public List<Map> findPrice(String companyId) {
        return statDao.findPrice(companyId);
    }
}
